Skip to contentSkip to conversation

mozjs: update 98 -> 102

PATCH Markus Volk 1 participant 1 message Nov 27, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

This adds back the patch to avoid looking for llvm-objdump. I thought this might be unneeded if providing llvm-native and on a first look this did work. Since llvm-native will be needed for rust and librsvg anyway, i thought that dependency wouldn't hurt to much. But it turned out, that also clang-native is needed to build and that is not so nice, because it would add a layer dependency on meta-clang and some additional build time.

Am So, 27. Nov 2022 um 21:13:45 +0100 schrieb Markus Volk <[email protected]>:

Quoted 908 lines
Signed-off-by Markus Volk <[email protected] <mailto:[email protected]>>
---
 ...001-Cargo.toml-do-not-abort-on-panic.patch |  11 +-
 ...-autoconf-s-config.sub-to-canonicali.patch |   7 +-
 ...rewrite-cargo-host-linker-in-python3.patch |  10 +-
 ...ix-one-occasionally-reproduced-confi.patch |  10 +-
 ...nfigure-do-not-look-for-llvm-objdump.patch |  13 +-
 ...o-not-try-to-find-a-suitable-upstrea.patch |   9 +-
 .../0004-use-asm-sgidefs.h.patch              |   9 +-
 .../mozjs/mozjs-102/fix-musl-build.patch      |  27 ++++
 .../{mozjs-91 => mozjs-102}/py-3.11.patch     | 128 
++++--------------
 .../{mozjs-91 => mozjs-102}/riscv32.patch     |  27 +++-
 ...zjs-91_91.13.0.bb => mozjs-102_102.5.0.bb} |  12 +-
 .../mozjs-91/0005-nojit-32bit-arch-fix.patch  |  21 ---
 .../mozjs-91/0006-Fix-build-on-powerpc.patch  |  36 -----
 .../mozjs/mozjs-91/fix-musl-build.patch       |  15 --
 14 files changed, 118 insertions(+), 217 deletions(-)
 rename meta-oe/recipes-extended/mozjs/{mozjs-91 => 
mozjs-102}/0001-Cargo.toml-do-not-abort-on-panic.patch (74%)
 rename meta-oe/recipes-extended/mozjs/{mozjs-91 => 
mozjs-102}/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch (84%)
 rename meta-oe/recipes-extended/mozjs/{mozjs-91 => 
mozjs-102}/0001-rewrite-cargo-host-linker-in-python3.patch (92%)
 rename meta-oe/recipes-extended/mozjs/{mozjs-91 => 
mozjs-102}/0001-util.configure-fix-one-occasionally-reproduced-confi.patch (91%)
 rename meta-oe/recipes-extended/mozjs/{mozjs-91 => 
mozjs-102}/0002-moz.configure-do-not-look-for-llvm-objdump.patch (82%)
 rename meta-oe/recipes-extended/mozjs/{mozjs-91 => 
mozjs-102}/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch (91%)
 rename meta-oe/recipes-extended/mozjs/{mozjs-91 => 
mozjs-102}/0004-use-asm-sgidefs.h.patch (79%)
 create mode 100644 
meta-oe/recipes-extended/mozjs/mozjs-102/fix-musl-build.patch
 rename meta-oe/recipes-extended/mozjs/{mozjs-91 => 
mozjs-102}/py-3.11.patch (59%)
 rename meta-oe/recipes-extended/mozjs/{mozjs-91 => 
mozjs-102}/riscv32.patch (56%)
 rename meta-oe/recipes-extended/mozjs/{mozjs-91_91.13.0.bb => 
mozjs-102_102.5.0.bb} (86%)
 delete mode 100644 
meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch
 delete mode 100644 
meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch
 delete mode 100644 

meta-oe/recipes-extended/mozjs/mozjs-91/fix-musl-build.patch

meta-oe/recipes-extended/mozjs/mozjs-102/0001-Cargo.toml-do-not-abort-on-panic.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-Cargo.toml-do-not-abort-on-panic.patch +0 -1
similarity index 74%
rename from meta-oe/recipes-extended/mozjs/mozjs-91/0001-Cargo.toml-do-not-abort-on-panic.patch
rename to meta-oe/recipes-extended/mozjs/mozjs-102/0001-Cargo.toml-do-not-abort-on-panic.patch
index e09848f40..0dd936197 100644
--- 

a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-Cargo.toml-do-not-abort-on-panic.patch
+++
b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-Cargo.toml-do-not-abort-on-panic.patch

meta-oe/recipes-extended/mozjs/mozjs-102/0001-Cargo.toml-do-not-abort-on-panic.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-Cargo.toml-do-not-abort-on-panic.patch +0 -1
@@ -1,4 +1,4 @@
-From 9e37248870b2b955293754933c789ca00bca06ef Mon Sep 17 00:00:00 

2001
+From bb46a8a729cc4d66ad36db40c17e36a5111f19c3 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <[email protected]
<mailto:[email protected]>>
Date: Fri, 1 Oct 2021 13:00:24 +0200
Subject: [PATCH] Cargo.toml: do not abort on panic

meta-oe/recipes-extended/mozjs/mozjs-102/0001-Cargo.toml-do-not-abort-on-panic.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-Cargo.toml-do-not-abort-on-panic.patch +0 -0
@@ -7,13 +7,16 @@ OE's rust is configured to unwind, and this setting 

clashes with it/

Upstream-Status: Inappropriate [oe-core specific]

<mailto:[email protected]>>

meta-oe/recipes-extended/mozjs/mozjs-102/0001-Cargo.toml-do-not-abort-on-panic.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-Cargo.toml-do-not-abort-on-panic.patch +6 -3
+
 ---
- Cargo.toml | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
+ Cargo.toml | 2 --
+ 1 file changed, 2 deletions(-)
 
+diff --git a/Cargo.toml b/Cargo.toml
+index f576534bf3..5ecc17c319 100644
 --- a/Cargo.toml
 +++ b/Cargo.toml
-@@ -51,13 +51,11 @@ opt-level = 1
+@@ -56,13 +56,11 @@ opt-level = 1
  rpath = false
  lto = false
  debug-assertions = true
meta-oe/recipes-extended/mozjs/mozjs-102/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch +0 -1
similarity index 84%
rename from meta-oe/recipes-extended/mozjs/mozjs-91/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch
rename to meta-oe/recipes-extended/mozjs/mozjs-102/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch
index a2ccf6b91..fe905fe4d 100644
--- 

a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch
+++
b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch

meta-oe/recipes-extended/mozjs/mozjs-102/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch +0 -1
@@ -1,4 +1,4 @@
-From e5b95b3918588e2930c9af7ba304c57e871b2d55 Mon Sep 17 00:00:00 

2001
+From c860dcbe63b0e393c95bfb0131238f91aaac11d3 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <[email protected]
<mailto:[email protected]>>
Date: Thu, 7 Oct 2021 12:44:18 +0200
Subject: [PATCH] build: do not use autoconf's config.sub to
'canonicalize'

meta-oe/recipes-extended/mozjs/mozjs-102/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch +0 -0
@@ -9,15 +9,16 @@ target definitions, and the build fails.
 
 Upstream-Status: Inappropriate [oe-core specific]
 Signed-off-by: Alexander Kanavin <[email protected] 

<mailto:[email protected]>>
+
---

  build/moz.configure/init.configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/moz.configure/init.configure
b/build/moz.configure/init.configure

meta-oe/recipes-extended/mozjs/mozjs-102/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch +2 -2
-index 3a164c6558..99dfc9054a 100644
+index 81f500a0b7..0b7a2ff60f 100644
 --- a/build/moz.configure/init.configure
 +++ b/build/moz.configure/init.configure
-@@ -823,7 +823,7 @@ def help_host_target(help, host, target):
+@@ -585,7 +585,7 @@ def help_host_target(help, host, target):
 
  def config_sub(shell, triplet):
      config_sub = os.path.join(os.path.dirname(__file__), "..", 

"autoconf", "config.sub")

meta-oe/recipes-extended/mozjs/mozjs-102/0001-rewrite-cargo-host-linker-in-python3.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-rewrite-cargo-host-linker-in-python3.patch +0 -1
similarity index 92%
rename from meta-oe/recipes-extended/mozjs/mozjs-91/0001-rewrite-cargo-host-linker-in-python3.patch
rename to meta-oe/recipes-extended/mozjs/mozjs-102/0001-rewrite-cargo-host-linker-in-python3.patch
index 7b938179c..73bcffe94 100644
--- 

a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-rewrite-cargo-host-linker-in-python3.patch
+++
b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-rewrite-cargo-host-linker-in-python3.patch

meta-oe/recipes-extended/mozjs/mozjs-102/0001-rewrite-cargo-host-linker-in-python3.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-rewrite-cargo-host-linker-in-python3.patch +0 -1
@@ -1,4 +1,4 @@
-From 9eceb43dd676afe2f675bd65ab369ba4d14f6537 Mon Sep 17 00:00:00 

2001
+From 8e318c4e7e732327dabf51027860de45b6fb731e Mon Sep 17 00:00:00 2001
From: Changqing Li <[email protected]
<mailto:[email protected]>>
Date: Thu, 18 Nov 2021 07:16:39 +0000
Subject: [PATCH] Rewrite cargo-host-linker in python3

meta-oe/recipes-extended/mozjs/mozjs-102/0001-rewrite-cargo-host-linker-in-python3.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-rewrite-cargo-host-linker-in-python3.patch +0 -0
@@ -18,12 +18,13 @@ rewrite cargo-host-linker in python3
 Upstream-Status: Inappropriate [oe specific]
 
 Signed-off-by: Changqing Li <[email protected] 

<mailto:[email protected]>>

meta-oe/recipes-extended/mozjs/mozjs-102/0001-rewrite-cargo-host-linker-in-python3.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-rewrite-cargo-host-linker-in-python3.patch +3 -2
+
 ---
- build/cargo-host-linker | 24 +++++++---
+ build/cargo-host-linker | 24 +++++++++++++++++++++---
  1 file changed, 21 insertions(+), 3 deletions(-)
 
 diff --git a/build/cargo-host-linker b/build/cargo-host-linker
-index cbd0472bf7..ccd8bffec1 100755
+index cbd0472bf7..87d43ce9ec 100755
 --- a/build/cargo-host-linker
 +++ b/build/cargo-host-linker
 @@ -1,3 +1,21 @@
@@ -51,6 +52,3 @@ index cbd0472bf7..ccd8bffec1 100755
 +        args=[os.environ['MOZ_CARGO_WRAP_HOST_LD'].split()[0]] + 

sys.argv[1:]
+
+os.execvp(binary, args)
---
-2.33.1

meta-oe/recipes-extended/mozjs/mozjs-102/0001-rewrite-cargo-host-linker-in-python3.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-rewrite-cargo-host-linker-in-python3.patch +0 -1
-
meta-oe/recipes-extended/mozjs/mozjs-102/0001-util.configure-fix-one-occasionally-reproduced-confi.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-util.configure-fix-one-occasionally-reproduced-confi.patch +0 -1
similarity index 91%
rename from meta-oe/recipes-extended/mozjs/mozjs-91/0001-util.configure-fix-one-occasionally-reproduced-confi.patch
rename to meta-oe/recipes-extended/mozjs/mozjs-102/0001-util.configure-fix-one-occasionally-reproduced-confi.patch
index 5472eddbb..d732fdaf6 100644
--- 

a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-util.configure-fix-one-occasionally-reproduced-confi.patch
+++
b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-util.configure-fix-one-occasionally-reproduced-confi.patch

meta-oe/recipes-extended/mozjs/mozjs-102/0001-util.configure-fix-one-occasionally-reproduced-confi.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-util.configure-fix-one-occasionally-reproduced-confi.patch +0 -1
@@ -1,4 +1,4 @@
-From b13cad4abc53f816f64c8b0af70cb46820746c72 Mon Sep 17 00:00:00 

2001
+From 2a6f66f39b4e623428b6d282bd4cb72dde67c1a6 Mon Sep 17 00:00:00 2001
From: Changqing Li <[email protected]
<mailto:[email protected]>>
Date: Thu, 11 Nov 2021 16:05:54 +0800
Subject: [PATCH] util.configure: fix one occasionally reproduced
configure

meta-oe/recipes-extended/mozjs/mozjs-102/0001-util.configure-fix-one-occasionally-reproduced-confi.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-util.configure-fix-one-occasionally-reproduced-confi.patch +0 -0
@@ -28,15 +28,16 @@ It should be another process that deleted this 

file by using
Upstream-Status: Submitted
[<https://bugzilla.mozilla.org/show_bug.cgi?id=1740667>]

<mailto:[email protected]>>
+
---

  build/moz.configure/util.configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/moz.configure/util.configure
b/build/moz.configure/util.configure

meta-oe/recipes-extended/mozjs/mozjs-102/0001-util.configure-fix-one-occasionally-reproduced-confi.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-util.configure-fix-one-occasionally-reproduced-confi.patch +1 -2
-index 8f35e89c73..84e256647d 100644
+index 80c3a34522..0ac0c6b611 100644
 --- a/build/moz.configure/util.configure
 +++ b/build/moz.configure/util.configure
-@@ -222,7 +222,7 @@ def try_invoke_compiler(compiler, language, 

source, flags=None, onerror=None):
+@@ -216,7 +216,7 @@ def try_invoke_compiler(compiler, language, source, flags=None, onerror=None):

          "C++": ".cpp",
      }[language]
meta-oe/recipes-extended/mozjs/mozjs-102/0001-util.configure-fix-one-occasionally-reproduced-confi.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-util.configure-fix-one-occasionally-reproduced-confi.patch +0 -3
@@ -45,6 +46,3 @@ index 8f35e89c73..84e256647d 100644
      try:
          source = source.encode("ascii", "replace")
 
---
-2.17.1
-
meta-oe/recipes-extended/mozjs/mozjs-102/0002-moz.configure-do-not-look-for-llvm-objdump.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0002-moz.configure-do-not-look-for-llvm-objdump.patch +0 -1
similarity index 82%
rename from meta-oe/recipes-extended/mozjs/mozjs-91/0002-moz.configure-do-not-look-for-llvm-objdump.patch
rename to meta-oe/recipes-extended/mozjs/mozjs-102/0002-moz.configure-do-not-look-for-llvm-objdump.patch
index 6ff83e3bb..b3d3c1ffa 100644
--- 

a/meta-oe/recipes-extended/mozjs/mozjs-91/0002-moz.configure-do-not-look-for-llvm-objdump.patch
+++
b/meta-oe/recipes-extended/mozjs/mozjs-102/0002-moz.configure-do-not-look-for-llvm-objdump.patch

meta-oe/recipes-extended/mozjs/mozjs-102/0002-moz.configure-do-not-look-for-llvm-objdump.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0002-moz.configure-do-not-look-for-llvm-objdump.patch +0 -1
@@ -16,13 +16,13 @@ diff --git a/moz.configure b/moz.configure
 index fc66b520d0..15de9a2ee0 100755
 --- a/moz.configure
 +++ b/moz.configure
-@@ -994,15 +994,15 @@ def llvm_objdump(host_c_compiler, c_compiler, 

bindgen_config_paths):

meta-oe/recipes-extended/mozjs/mozjs-102/0002-moz.configure-do-not-look-for-llvm-objdump.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0002-moz.configure-do-not-look-for-llvm-objdump.patch +7 -5
-     return (llvm_objdump,)
+@@ -785,15 +785,15 @@
+     return llvm_tool
 
 
 -llvm_objdump = check_prog(
 -    "LLVM_OBJDUMP",
--    llvm_objdump,
+-    llvm_tool("llvm-objdump"),
 -    what="llvm-objdump",
 -    when="--enable-compile-environment",
 -    paths=clang_search_path,
@@ -31,13 +31,14 @@ index fc66b520d0..15de9a2ee0 100755
 -add_old_configure_assignment("LLVM_OBJDUMP", llvm_objdump)
 +#llvm_objdump = check_prog(
 +#    "LLVM_OBJDUMP",
-+#    llvm_objdump,
++#    llvm_tool("llvm-objdump"),
 +#    what="llvm-objdump",
 +#    when="--enable-compile-environment",
 +#    paths=clang_search_path,
 +#)
-+
++#
 +#add_old_configure_assignment("LLVM_OBJDUMP", llvm_objdump)
 
 
- option("--enable-dtrace", help="Build with dtrace support")
+ @depends(llvm_tool("llvm-readelf"), toolchain_prefix)
+
meta-oe/recipes-extended/mozjs/mozjs-102/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch +0 -1
similarity index 91%
rename from meta-oe/recipes-extended/mozjs/mozjs-91/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch
rename to meta-oe/recipes-extended/mozjs/mozjs-102/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch
index c440bf178..e63b05356 100644
--- 

a/meta-oe/recipes-extended/mozjs/mozjs-91/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch
+++
b/meta-oe/recipes-extended/mozjs/mozjs-102/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch

meta-oe/recipes-extended/mozjs/mozjs-102/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch +0 -1
@@ -1,4 +1,4 @@
-From 749ba11fd6a69c8180945d4866415d16ae06a9c0 Mon Sep 17 00:00:00 

2001
+From 33ff25e2b126dd4135006139641d8b7f6e4da200 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <[email protected]
<mailto:[email protected]>>
Date: Fri, 1 Oct 2021 13:02:17 +0200
Subject: [PATCH] rust.configure: do not try to find a suitable
upstream target

meta-oe/recipes-extended/mozjs/mozjs-102/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch +0 -0
@@ -7,15 +7,16 @@ OE is using custom targets and so this is bound to 

fail.

Upstream-Status: Inapppropriate [oe-core specific]

<mailto:[email protected]>>
+
---

  build/moz.configure/rust.configure | 34 
++----------------------------
  1 file changed, 2 insertions(+), 32 deletions(-)

diff --git a/build/moz.configure/rust.configure
b/build/moz.configure/rust.configure

meta-oe/recipes-extended/mozjs/mozjs-102/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch +1 -2
-index cd77d72bb7..4b6481cbe3 100644
+index e64dc5d5ec..edf21baca6 100644
 --- a/build/moz.configure/rust.configure
 +++ b/build/moz.configure/rust.configure
-@@ -459,33 +459,7 @@ def assert_rust_compile(host_or_target, 

rustc_target, rustc):
+@@ -471,33 +471,7 @@ def assert_rust_compile(host_or_target, rustc_target, rustc):
def rust_host_triple(
rustc, host, compiler_info, rustc_host, rust_supported_targets,
arm_target
):

meta-oe/recipes-extended/mozjs/mozjs-102/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch +1 -1
@@ -50,7 +51,7 @@ index cd77d72bb7..4b6481cbe3 100644
 
 
  @depends(
-@@ -495,11 +469,7 @@ def rust_host_triple(
+@@ -507,11 +481,7 @@ def rust_host_triple(
  def rust_target_triple(
      rustc, target, compiler_info, rust_supported_targets, arm_target
  ):
meta-oe/recipes-extended/mozjs/mozjs-102/0004-use-asm-sgidefs.h.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0004-use-asm-sgidefs.h.patch +0 -1
similarity index 79%
rename from meta-oe/recipes-extended/mozjs/mozjs-91/0004-use-asm-sgidefs.h.patch
rename to meta-oe/recipes-extended/mozjs/mozjs-102/0004-use-asm-sgidefs.h.patch
index b56f0b95b..ff28654b5 100644
--- 

a/meta-oe/recipes-extended/mozjs/mozjs-91/0004-use-asm-sgidefs.h.patch
+++
b/meta-oe/recipes-extended/mozjs/mozjs-102/0004-use-asm-sgidefs.h.patch

meta-oe/recipes-extended/mozjs/mozjs-102/0004-use-asm-sgidefs.h.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0004-use-asm-sgidefs.h.patch +0 -1
@@ -1,4 +1,4 @@
-From 65acc8800dba7e10da882871d4648241805c47ce Mon Sep 17 00:00:00 

2001
+From 0ec73937b01869a701ed9b60a6a84469e035ded4 Mon Sep 17 00:00:00 2001
From: Andre McCurdy <[email protected] <mailto:[email protected]>>
Date: Sat, 30 Apr 2016 15:29:06 -0700
Subject: [PATCH] use <asm/sgidefs.h>

meta-oe/recipes-extended/mozjs/mozjs-102/0004-use-asm-sgidefs.h.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0004-use-asm-sgidefs.h.patch +0 -0
@@ -18,13 +18,16 @@ Taken from: 

https://sourceware.org/bugzilla/show_bug.cgi?id=21070]

<mailto:[email protected]>>

<mailto:[email protected]>>

<mailto:[email protected]>>

meta-oe/recipes-extended/mozjs/mozjs-102/0004-use-asm-sgidefs.h.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0004-use-asm-sgidefs.h.patch +5 -2
+
 ---
- gdb/mips-linux-nat.c | 2 +-
+ mfbt/RandomNum.cpp | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
+diff --git a/mfbt/RandomNum.cpp b/mfbt/RandomNum.cpp
+index 23381db0cd..7f127c0715 100644
 --- a/mfbt/RandomNum.cpp
 +++ b/mfbt/RandomNum.cpp
-@@ -52,7 +52,7 @@ extern "C" BOOLEAN NTAPI RtlGenRandom(PV
+@@ -52,7 +52,7 @@ extern "C" BOOLEAN NTAPI RtlGenRandom(PVOID 

RandomBuffer,
# elif defined(__s390__)
# define GETRANDOM_NR 349
# elif defined(__mips__)

meta-oe/recipes-extended/mozjs/mozjs-102/fix-musl-build.patch new file +1 -0
new file mode 100644
index 000000000..f847979ea
@@ -0,0 +1,27 @@
+From 1110483c6c06adf2d03ed9154a8957defc175c80 Mon Sep 17 00:00:00 

2001

meta-oe/recipes-extended/mozjs/mozjs-102/fix-musl-build.patch new file +3 -0
+From: Khem Raj <[email protected] <mailto:[email protected]>>
+Date: Wed, 20 Oct 2021 16:21:14 -0700
+Subject: [PATCH] mozjs: Fix musl miscompiles with 

HAVE_THREAD_TLS_KEYWORD

meta-oe/recipes-extended/mozjs/mozjs-102/fix-musl-build.patch new file +3 -0
+
+Upstream: No
+Reason: mozjs60 miscompiles on musl if built with 

HAVE_THREAD_TLS_KEYWORD:
+<https://github.com/void-linux/void-packages/issues/2598>

meta-oe/recipes-extended/mozjs/mozjs-102/fix-musl-build.patch new file +19 -0
+
+---
+ js/src/old-configure.in | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/js/src/old-configure.in b/js/src/old-configure.in
+index 8dfd75c63d..c82e580428 100644
+--- a/js/src/old-configure.in
++++ b/js/src/old-configure.in
+@@ -839,6 +839,9 @@ if test "$ac_cv_thread_keyword" = yes; then
+     *-android*|*-linuxandroid*)
+       :
+       ;;
++    *-musl*)
++      :
++      ;;
+     *)
+       AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
+       ;;
meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +1 -0
similarity index 59%
rename from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch
rename to meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch
index 71da8225a..85af54709 100644
@@ -1,3 +1,7 @@
+From 1479dd9c75917d2be70ee840c9db141e59987e44 Mon Sep 17 00:00:00 

2001
+From: Alexander Kanavin <[email protected]
<mailto:[email protected]>>

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +2 -0
+Date: Wed, 14 Sep 2022 14:03:10 +0200
+Subject: [PATCH] mozjs-91: backport a python 3.11 compatibility patch
 
 # HG changeset patch
 # User ahochheiden <[email protected] 

<mailto:[email protected]>>

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -0
@@ -19,15 +23,20 @@ Differential Revision: 

https://phabricator.services.mozilla.com/D147721
Upstream-Status: Backport

[<https://hg.mozilla.org/mozilla-central/rev/f54162b2c1f2fe52c6137ab2c3469a1944f58b27>]

<mailto:[email protected]>>

+---
+ dom/base/usecounters.py                                 | 2 +-
+ python/mozbuild/mozbuild/action/process_define_files.py | 2 +-
+ python/mozbuild/mozbuild/backend/base.py                | 2 +-
+ python/mozbuild/mozbuild/preprocessor.py                | 6 +++---
+ python/mozbuild/mozbuild/util.py                        | 2 +-
+ python/mozbuild/mozpack/files.py                        | 4 ++--

+ 6 files changed, 9 insertions(+), 9 deletions(-)

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +3 -6
+
 diff --git a/dom/base/usecounters.py b/dom/base/usecounters.py
+index 780e3b32b2..7e2c7148ec 100644
 --- a/dom/base/usecounters.py
 +++ b/dom/base/usecounters.py
-@@ -3,17 +3,17 @@
- # file, You can obtain one at <http://mozilla.org/MPL/2.0/>.
-
- import collections
- import re
-
+@@ -8,7 +8,7 @@ import re
 
  def read_conf(conf_filename):
      # Can't read/write from a single StringIO, so make a new one 

for reading.

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -0
@@ -36,20 +45,11 @@ diff --git a/dom/base/usecounters.py 

b/dom/base/usecounters.py

def parse_counters(stream):
for line_num, line in enumerate(stream):

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -5
-             line = line.rstrip("\n")
-             if not line or line.startswith("//"):
-                 # empty line or comment
-                 continue
-             m = re.match(r"method ([A-Za-z0-9]+)\.([A-Za-z0-9]+)$", 

line)
diff --git a/python/mozbuild/mozbuild/action/process_define_files.py
b/python/mozbuild/mozbuild/action/process_define_files.py

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +2 -6
+index f1d401ac26..aca59d0f05 100644
 --- a/python/mozbuild/mozbuild/action/process_define_files.py
 +++ b/python/mozbuild/mozbuild/action/process_define_files.py
-@@ -31,17 +31,17 @@ def process_define_file(output, input):
-
-     config = PartialConfigEnvironment(topobjdir)
-
-     if mozpath.basedir(
-         path, [mozpath.join(topsrcdir, "js/src")]
+@@ -36,7 +36,7 @@ def process_define_file(output, input):
      ) and not config.substs.get("JS_STANDALONE"):
          config = PartialConfigEnvironment(mozpath.join(topobjdir, 

"js", "src"))

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -0
@@ -58,20 +58,11 @@ diff --git 

a/python/mozbuild/mozbuild/action/process_define_files.py b/python/mo

          r = re.compile(

"^\s*#\s*(?P<cmd>[a-z]+)(?:\s+(?P<name>\S+)(?:\s+(?P<value>\S+))?)?", re.U

          )
meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -5
-         for l in input:
-             m = r.match(l)
-             if m:
-                 cmd = m.group("cmd")
-                 name = m.group("name")
 diff --git a/python/mozbuild/mozbuild/backend/base.py 

b/python/mozbuild/mozbuild/backend/base.py

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +2 -6
+index 7bc1986d86..b64a709468 100644
 --- a/python/mozbuild/mozbuild/backend/base.py
 +++ b/python/mozbuild/mozbuild/backend/base.py
-@@ -267,17 +267,17 @@ class BuildBackend(LoggingMixin):
-         If an exception is raised, |mach build| will fail with a
-         non-zero exit code.
-         """
-         self._write_purgecaches(config)
-
+@@ -272,7 +272,7 @@ class BuildBackend(LoggingMixin):
          return status
 
      @contextmanager
@@ -80,20 +71,11 @@ diff --git 

a/python/mozbuild/mozbuild/backend/base.py b/python/mozbuild/mozbuild
"""Context manager to write a file.

This is a glorified wrapper around FileAvoidWrite with
integration to

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -5
-         update the summary data on this instance.
-
-         Example usage:
-
-             with self._write_file('foo.txt') as fh:
 diff --git a/python/mozbuild/mozbuild/preprocessor.py 

b/python/mozbuild/mozbuild/preprocessor.py

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +2 -6
+index f7820b9c91..857f1a6c9b 100644
 --- a/python/mozbuild/mozbuild/preprocessor.py
 +++ b/python/mozbuild/mozbuild/preprocessor.py
-@@ -526,17 +526,17 @@ class Preprocessor:
-             if not options.output:
-                 raise Preprocessor.Error(
-                     self, "--depend doesn't work with stdout", None
-                 )
-             depfile = get_output_file(options.depend)
+@@ -531,7 +531,7 @@ class Preprocessor:
 
          if args:
              for f in args:
@@ -102,17 +84,7 @@ diff --git 

a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild
self.processFile(input=input, output=out)
if depfile:
mk = Makefile()
- mk.create_rule([six.ensure_text(options.output)]).add_dependencies(

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +1 -10
-                     self.includes
-                 )
-                 mk.dump(depfile)
-                 depfile.close()
-@@ -855,17 +855,17 @@ class Preprocessor:
-         self.checkLineNumbers = False
-         if isName:
-             try:
-                 args = _to_text(args)
-                 if filters:
+@@ -860,7 +860,7 @@ class Preprocessor:
                      args = self.applyFilters(args)
                  if not os.path.isabs(args):
                      args = os.path.join(self.curdir, args)
@@ -121,17 +93,7 @@ diff --git 

a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild
except Preprocessor.Error:
raise
except Exception:
- raise Preprocessor.Error(self, "FILE_NOT_FOUND",
_to_text(args))

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +1 -10
-         self.checkLineNumbers = bool(
-             re.search("\.(js|jsm|java|webidl)(?:\.in)?$", args.name)
-         )
-         oldFile = self.context["FILE"]
-@@ -909,17 +909,17 @@ class Preprocessor:
-
-     def do_error(self, args):
-         raise Preprocessor.Error(self, "Error: ", _to_text(args))
-
-
+@@ -914,7 +914,7 @@ class Preprocessor:
  def preprocess(includes=[sys.stdin], defines={}, output=sys.stdout, 

marker="#"):
pp = Preprocessor(defines=defines, marker=marker) for f in includes:

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -0
@@ -140,20 +102,11 @@ diff --git 

a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild
pp.processFile(input=input, output=output)
return pp.includes

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -5
-
- # Keep this module independently executable.
- if __name__ == "__main__":
-     pp = Preprocessor()
-     pp.handleCommandLine(None, True)
 diff --git a/python/mozbuild/mozbuild/util.py 

b/python/mozbuild/mozbuild/util.py

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +1 -2
+index b09f164698..4f1e0cdc5f 100644
 --- a/python/mozbuild/mozbuild/util.py
 +++ b/python/mozbuild/mozbuild/util.py
-@@ -231,17 +231,17 @@ class FileAvoidWrite(BytesIO):
-     enabled by default because it a) doesn't make sense for binary 

files b)

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -3
-     could add unwanted overhead to calls.
-
-     Additionally, there is dry run mode where the file is not 

actually written
- out, but reports whether the file was existing and would have
been updated
+@@ -236,7 +236,7 @@ class FileAvoidWrite(BytesIO):
still occur, as well as diff capture if requested. """

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -0
@@ -162,20 +115,11 @@ diff --git a/python/mozbuild/mozbuild/util.py 

b/python/mozbuild/mozbuild/util.py

          BytesIO.__init__(self)
          self.name = filename
          assert type(capture_diff) == bool
meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -5
-         assert type(dry_run) == bool
-         assert "r" in readmode
-         self._capture_diff = capture_diff
-         self._write_to_file = not dry_run
-         self.diff = None
 diff --git a/python/mozbuild/mozpack/files.py 

b/python/mozbuild/mozpack/files.py

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +1 -4
+index 1d8a1ed2d8..a295a67b5a 100644
 --- a/python/mozbuild/mozpack/files.py
 +++ b/python/mozbuild/mozpack/files.py
-@@ -549,17 +549,17 @@ class PreprocessedFile(BaseFile):
-         self.defines = defines
-         self.extra_depends = list(extra_depends or [])
-         self.silence_missing_directive_warnings = 

silence_missing_directive_warnings

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +1 -2
-
-     def inputs(self):
+@@ -554,7 +554,7 @@ class PreprocessedFile(BaseFile):
          pp = Preprocessor(defines=self.defines, marker=self.marker)

pp.setSilenceDirectiveWarnings(self.silence_missing_directive_warnings)

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -0
@@ -184,17 +128,7 @@ diff --git a/python/mozbuild/mozpack/files.py 

b/python/mozbuild/mozpack/files.py
with _open(os.devnull, "w") as output:
pp.processFile(input=input, output=output)

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +1 -11
-         # This always yields at least self.path.
-         return pp.includes
-
-     def copy(self, dest, skip_if_older=True):
-         """
-@@ -606,17 +606,17 @@ class PreprocessedFile(BaseFile):
-             return False
-
-         deps_out = None
-         if self.depfile:
-             deps_out = FileAvoidWrite(self.depfile)
+@@ -611,7 +611,7 @@ class PreprocessedFile(BaseFile):
          pp = Preprocessor(defines=self.defines, marker=self.marker)

pp.setSilenceDirectiveWarnings(self.silence_missing_directive_warnings)

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -0
@@ -203,9 +137,3 @@ diff --git a/python/mozbuild/mozpack/files.py 

b/python/mozbuild/mozpack/files.py
pp.processFile(input=input, output=dest,
depfile=deps_out)

dest.close()

meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +0 -6
-         if self.depfile:
-             deps_out.close()
-
-         return True
-
-
meta-oe/recipes-extended/mozjs/mozjs-102/riscv32.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/riscv32.patch +1 -1
similarity index 56%
rename from meta-oe/recipes-extended/mozjs/mozjs-91/riscv32.patch
rename to meta-oe/recipes-extended/mozjs/mozjs-102/riscv32.patch
index fe9c332a0..a6a0a9ede 100644
@@ -1,11 +1,22 @@
-Add RISCV32 support
+From 81385fe53ffde5e1636e9ace0736d914da8dbc0f Mon Sep 17 00:00:00 

2001

meta-oe/recipes-extended/mozjs/mozjs-102/riscv32.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/riscv32.patch +3 -0
+From: Khem Raj <[email protected] <mailto:[email protected]>>
+Date: Sun, 24 Oct 2021 22:32:50 -0700
+Subject: [PATCH] Add RISCV32 support
 
 Upstream-Status: Pending
 Signed-off-by: Khem Raj <[email protected] 

<mailto:[email protected]>>

+---
+ build/moz.configure/init.configure                             | 3 

+++
+ python/mozbuild/mozbuild/configure/constants.py | 2
++
+ .../mozbuild/test/configure/test_toolchain_configure.py | 1 +
+ 3 files changed, 6 insertions(+)

meta-oe/recipes-extended/mozjs/mozjs-102/riscv32.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/riscv32.patch +2 -0
+
+diff --git a/build/moz.configure/init.configure 

b/build/moz.configure/init.configure
+index 0b7a2ff60f..54f8325b44 100644
--- a/build/moz.configure/init.configure
+++ b/build/moz.configure/init.configure
-@@ -765,6 +765,9 @@ def split_triplet(triplet, allow_msvc=Fa +@@ -524,6 +524,9 @@ def split_triplet(triplet, allow_msvc=False, allow_wasi=False):
elif cpu.startswith("aarch64"):
canonical_cpu = "aarch64"
endianness = "little"

meta-oe/recipes-extended/mozjs/mozjs-102/riscv32.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/riscv32.patch +1 -0
@@ -15,9 +26,11 @@ Signed-off-by: Khem Raj <[email protected]>
      elif cpu in ("riscv64", "riscv64gc"):
          canonical_cpu = "riscv64"
          endianness = "little"
+diff --git a/python/mozbuild/mozbuild/configure/constants.py 

b/python/mozbuild/mozbuild/configure/constants.py

meta-oe/recipes-extended/mozjs/mozjs-102/riscv32.patch renamed from meta-oe/recipes-extended/mozjs/mozjs-91/riscv32.patch +5 -3
+index c71460cb20..15bef93e19 100644
 --- a/python/mozbuild/mozbuild/configure/constants.py
 +++ b/python/mozbuild/mozbuild/configure/constants.py
-@@ -52,6 +52,7 @@ CPU_bitness = {
+@@ -53,6 +53,7 @@ CPU_bitness = {
      "mips64": 64,
      "ppc": 32,
      "ppc64": 64,
@@ -25,17 +38,19 @@ Signed-off-by: Khem Raj <[email protected]>
      "riscv64": 64,
      "s390": 32,
      "s390x": 64,
-@@ -94,6 +95,7 @@ CPU_preprocessor_checks = OrderedDict(
+@@ -95,6 +96,7 @@ CPU_preprocessor_checks = OrderedDict(
          ("m68k", "__m68k__"),
          ("mips64", "__mips64"),
          ("mips32", "__mips__"),
 +        ("riscv32", "__riscv && __riscv_xlen == 32"),
          ("riscv64", "__riscv && __riscv_xlen == 64"),
+         ("loongarch64", "__loongarch64"),
          ("sh4", "__sh__"),
-         ("wasm32", "__wasm32__"),
+diff --git 

a/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py b/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py +index 059cde0139..4f9986eb31 100644
---
a/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py
+++
b/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py
-@@ -1186,6 +1186,7 @@ class LinuxCrossCompileToolchainTest(Bas
+@@ -1192,6 +1192,7 @@ class
LinuxCrossCompileToolchainTest(BaseToolchainTest):

          "m68k-unknown-linux-gnu": big_endian + {"__m68k__": 1},
          "mips64-unknown-linux-gnuabi64": big_endian + {"__mips64": 
1, "__mips__": 1},
          "mips-unknown-linux-gnu": big_endian + {"__mips__": 1},
meta-oe/recipes-extended/mozjs/mozjs-102_102.5.0.bb renamed from meta-oe/recipes-extended/mozjs/mozjs-91_91.13.0.bb +0 -0
similarity index 86%
rename from meta-oe/recipes-extended/mozjs/mozjs-91_91.13.0.bb
rename to meta-oe/recipes-extended/mozjs/mozjs-102_102.5.0.bb
index 4c1aa3447..a4d88a340 100644
@@ -11,15 +11,13 @@ SRC_URI = 

"https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/fire
file://fix-musl-build.patch
<file://fix-musl-build.patch/> \

file://0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch <file://0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch/> \
            file://riscv32.patch <file://riscv32.patch/> \

- file://0005-nojit-32bit-arch-fix.patch
<file://0005-nojit-32bit-arch-fix.patch/> \
- file://0006-Fix-build-on-powerpc.patch
<file://0006-fix-build-on-powerpc.patch/> \

file://0001-util.configure-fix-one-occasionally-reproduced-confi.patch <file://0001-util.configure-fix-one-occasionally-reproduced-confi.patch/> \
            file://0001-rewrite-cargo-host-linker-in-python3.patch 
<file://0001-rewrite-cargo-host-linker-in-python3.patch/>  \
            file://py-3.11.patch <file://py-3.11.patch/> \
            "

-SRC_URI[sha256sum] = "53be2bcde0b5ee3ec106bd8ba06b8ae95e7d489c484e881dfbe5360e4c920762" +SRC_URI[sha256sum] = "017dd44b1285913f477074802707a4c76ed1a28270ec5a327bbb76574cc057d8"

-S = "${WORKDIR}/firefox-${@d.getVar <mailto:firefox-${@d.getVar>("PV").replace("esr", "")}"

meta-oe/recipes-extended/mozjs/mozjs-102_102.5.0.bb renamed from meta-oe/recipes-extended/mozjs/mozjs-91_91.13.0.bb +4 -3
+S = "${WORKDIR}/firefox-${PV}"
 
 inherit pkgconfig perlnative python3native rust
@@ -67,12 +65,12 @@ do_install() {
 
 inherit multilib_script multilib_header
 
-MULTILIB_SCRIPTS += " ${PN}-dev:${bindir}/js91-config"
+MULTILIB_SCRIPTS += " ${PN}-dev:${bindir}/js102-config"
 
 do_install:append() {
-    oe_multilib_header mozjs-91/js-config.h
+    oe_multilib_header mozjs-102/js-config.h
     sed -e 's@${STAGING_DIR_HOST}@@g' \
-        -i ${D}${bindir}/js91-config
+        -i ${D}${bindir}/js102-config
     rm -f ${D}${libdir}/libjs_static.ajs
 }
 
meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch deleted +0 -1
deleted file mode 100644
index f308b4863..000000000
--- 

a/meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch +++ /dev/null

meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch deleted +0 -4
@@ -1,21 +0,0 @@
-Fix build when JIT is disabled on 32bit systems
-
-This fixes a compile time assert
-js/src/wasm/WasmFrame.cpp:57:3: error: static_assert failed due to 

requirement '(__builtin_offsetof(js::wasm::DebugFrame, frame_) + sizeof(js::wasm::Frame)) % Alignment == 0' "Aligned after pushing DebugFrame"
- static_assert((offsetof(DebugFrame, frame_) + sizeof(Frame)) %
Alignment == 0,
- ^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch deleted +0 -3
-
-Upstream-Status: Pending
-Signed-off-by: Khem Raj <[email protected] 

<mailto:[email protected]>>

meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch deleted +0 -9
-
---- a/js/src/wasm/WasmFrame.h
-+++ b/js/src/wasm/WasmFrame.h
-@@ -230,6 +230,8 @@ class DebugFrame {
-   // Avoid -Wunused-private-field warnings.
-  protected:
- #if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \
-+    (defined(JS_CODEGEN_NONE) && \
-+     (defined(__riscv) && __riscv_xlen == 32) || defined(__mips__)) 

|| \

meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch deleted +0 -2
-     defined(JS_CODEGEN_X86) || defined(__wasi__)
-   // See alignmentStaticAsserts().  For MIPS32, ARM32 and X86 

DebugFrame is only

meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch deleted +0 -1
-   // 4-byte aligned, so we add another word to get up to 8-byte
meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch deleted +0 -1
deleted file mode 100644
index 80bf746e4..000000000
--- 

a/meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch +++ /dev/null

meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch deleted +0 -1
@@ -1,36 +0,0 @@
-From 0e0548e3f95e22a39db8d5b934afe0672a3f801b Mon Sep 17 00:00:00 

2001
-From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected] <mailto:[email protected]>>

meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch deleted +0 -8
-Date: Mon, 1 Nov 2021 08:13:29 +0100
-Subject: [PATCH] Fix build on powerpc
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Another fix for (this time JIT enabled)
-| <...>/irefox-91.2.0/js/src/wasm/WasmFrame.cpp:57:76: error: static 

assertion failed: Aligned after pushing DebugFrame
-| 57 | static_assert((offsetof(DebugFrame, frame_) +
sizeof(Frame)) % Alignment == 0,
-| |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~

meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch deleted +0 -4
-
-Upstream-Status: Pending
-
-Signed-off-by: Andreas Müller <[email protected] 

<mailto:[email protected]>>
----
- js/src/wasm/WasmFrame.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)

meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch deleted +0 -9
-
-diff --git a/js/src/wasm/WasmFrame.h b/js/src/wasm/WasmFrame.h
-index 893762e..2d90656 100644
---- a/js/src/wasm/WasmFrame.h
-+++ b/js/src/wasm/WasmFrame.h
-@@ -232,7 +232,7 @@ class DebugFrame {
- #if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \
-     (defined(JS_CODEGEN_NONE) && \
-      (defined(__riscv) && __riscv_xlen == 32) || defined(__mips__)) 
|| \
--    defined(JS_CODEGEN_X86) || defined(__wasi__)
-+    defined(JS_CODEGEN_X86) || defined(__wasi__) || 

defined(__powerpc__)
- // See alignmentStaticAsserts(). For MIPS32, ARM32 and X86
DebugFrame is only

meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch deleted +0 -5
-   // 4-byte aligned, so we add another word to get up to 8-byte
-   // alignment.
---
-2.31.1
-
meta-oe/recipes-extended/mozjs/mozjs-91/fix-musl-build.patch deleted +0 -2
deleted file mode 100644
index c0834af58..000000000
@@ -1,15 +0,0 @@
-Upstream: No
-Reason: mozjs60 miscompiles on musl if built with 

HAVE_THREAD_TLS_KEYWORD:
-<https://github.com/void-linux/void-packages/issues/2598> ---- a/js/src/old-configure.in
-+++ b/js/src/old-configure.in
-@@ -1072,6 +1072,9 @@ if test "$ac_cv_thread_keyword" = yes; t

meta-oe/recipes-extended/mozjs/mozjs-91/fix-musl-build.patch deleted +0 -10
-     *-android*|*-linuxandroid*)
-       :
-       ;;
-+    *-musl*)
-+      :
-+      ;;
-     *)
-       AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
-       ;;
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#99784): <https://lists.openembedded.org/g/openembedded-devel/message/99784>
Mute This Topic: <https://lists.openembedded.org/mt/95296113/3618223>
Group Owner: [email protected] <mailto:[email protected]>
Unsubscribe: <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-